export const patientCardTypeBase = [
  { code: 10401, label: '身份证', i18nKey: 'common.id_type.id_card' },
  { code: 10402, label: '护照', i18nKey: 'common.id_type.passport' },
  { code: 10403, label: '港澳台通行证', i18nKey: 'common.id_type.gat' },
  { code: 10000, label: '其它', i18nKey: 'common.id_type.other' },
];
export const genderBase = [
  { code: 10901, label: '男', i18nKey: 'common.genter.male' },
  { code: 10902, label: '女', i18nKey: 'common.genter.female' },
];
export const marriageBase = [
  { code: 10301, label: '未婚', i18nKey: 'common.marriage_status.unmarried' },
  { code: 10302, label: '已婚', i18nKey: 'common.marriage_status.married' },
  // { code: 10303, label: '离异' },
  // { code: 10304, label: '丧偶' },
  // { code: 10000, label: '其它' },
];
export const patientRelationBase = [
  { code: 10201, label: '本人', i18nKey: 'common.relationship.self' },
  { code: 10202, label: '父母', i18nKey: 'common.relationship.parents' },
  { code: 10203, label: '配偶', i18nKey: 'common.relationship.spouses' },
  { code: 10204, label: '子女', i18nKey: 'common.relationship.children' },
  { code: 10205, label: '朋友', i18nKey: 'common.relationship.firend' },
  { code: 10000, label: '其它', i18nKey: 'common.relationship.other' },
];
export const costTypeBase = [
  { code: 10501, label: '医保' },
  { code: 10502, label: '自费' },
];
export const diagnosisTypeBase = [
  { code: 10601, label: '初诊' },
  { code: 10602, label: '复诊' },
];
// todo 前期沟通不到位，后端使用布尔值传递，仅在前端做枚举
export const isAccompanyBase = [
  { code: 11301, label: '否' },
  { code: 11302, label: '是' },
];
export const isAdmissionNoticeBase = [
  { code: 0, label: '未开具' },
  { code: 1, label: '开具' },
];
export const operationTypeBase = [
  { code: 10801, label: '住院手术' },
  { code: 10802, label: '门诊手术' },
];
export const orderStatusBase = [
  {
    label: '待受理',
    code: 10101,
    background: '#ebf4ff',
    leftTextColor: '#2d83e3',
    righTextColor: '#2d83e3',
  },
  // {
  //   label: '已受理',
  //   righTextColor: '#2d83e3',
  // },
  {
    label: '协调中',
    code: 10102,
    righTextColor: '#FDA900',
  },
  {
    label: '待就诊',
    code: 10103,
    background: '#EDFDF7',
    leftTextColor: '#1ABD80',
    righTextColor: '#1ABD80',
  },
  {
    label: '已完结',
    code: 10104,
    righTextColor: '#F95155',
  },
  {
    label: '取消中',
    code: 10105,
    righTextColor: '#FDA900',
  },
  {
    label: '已取消',
    code: 10106,
    righTextColor: '#F95155',
  },
];
// 门诊类型
export const outpatientTypeBase = [
  { code: 11001, label: '普通门诊' },
  { code: 11002, label: '特需门诊' },
  { code: 11003, label: '国际医疗' },
];
// 病房类型
export const roomTypeBase = [
  { code: 11201, label: '普通' },
  { code: 11202, label: '特需' },
  { code: 11203, label: '国际部' },
];

export const escortExtra = [];

export const outpatientExtra = [
  {
    label: '门诊类型',
    code: 'outpatientType',
    placeholder: '请选择门诊类型',
    componentId: 'field-item-picker',
    columns: outpatientTypeBase,
    key: 'filter',
    value: '',
  },
  {
    label: '专家姓名',
    code: 'doctorName',
    placeholder: '请输入专家姓名',
    componentId: 'field-item-input',
    value: '',
    unnecessary: true,
  },
];

export const operationExtra = [
  {
    label: '专家姓名',
    code: 'doctorName',
    placeholder: '请输入专家姓名',
    componentId: 'field-item-input',
    value: '',
    unnecessary: true,
  },
  {
    label: '手术类型',
    code: 'operationType',
    placeholder: '请选择手术类型',
    componentId: 'field-item-radio',
    columns: operationTypeBase,
    key: 'filter',
    value: '',
  },
  {
    label: '门诊类型',
    code: 'outpatientType',
    placeholder: '请选择门诊类型',
    componentId: 'field-item-picker',
    columns: outpatientTypeBase,
    key: 'filter',
    value: '',
  },
  {
    label: '病房类型',
    code: 'roomType',
    placeholder: '请选择病房类型',
    componentId: 'field-item-picker',
    columns: roomTypeBase,
    key: 'filter',
    value: '',
  },
];

export const hospitalizationExtra = [
  {
    label: '专家姓名',
    code: 'doctorName',
    placeholder: '请输入专家姓名',
    componentId: 'field-item-input',
    value: '',
    unnecessary: true,
  },
  {
    label: '住院通知单',
    code: 'isAdmissionNotice',
    placeholder: '请选择住院通知单',
    componentId: 'field-item-radio',
    columns: isAdmissionNoticeBase,
    value: '',
    key: 'filter',
  },
];
export const subscribeTypeBase = [
  {
    code: 10702,
    imageCode: 'outpatient',
    label: '门诊预约',
    extra: outpatientExtra,
  },
  {
    code: 10701,
    imageCode: 'escort',
    label: '专业陪诊',
    extra: escortExtra,
  },
  {
    code: 10703,
    imageCode: 'operation',
    label: '手术安排',
    extra: operationExtra,
  },
  {
    code: 10704,
    imageCode: 'hospitalization',
    label: '住院安排',
    extra: hospitalizationExtra,
  },
];
